package com.tiansheng.model.entity;

public class Order {

	private int orderId;
	private String orderNo;
	private int customId;
	private float orderTotal;
	private String orderTime;
	private String orderPs;
	private int isFinish;
	public Order() {
		super();
	}

	public Order(int orderId, String orderNo, int customId, float orderTotal,
			String orderTime, String orderPs, int isFinish) {
		super();
		this.orderId = orderId;
		this.orderNo = orderNo;
		this.customId = customId;
		this.orderTotal = orderTotal;
		this.orderTime = orderTime;
		this.orderPs = orderPs;
		this.isFinish = isFinish;
	}

	public int getIsFinish() {
		return isFinish;
	}

	public void setIsFinish(int isFinish) {
		this.isFinish = isFinish;
	}
	public int getOrderId() {
		return orderId;
	}
	
	public void setOrderId(int orderId) {
		this.orderId = orderId;
	}

	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	public int getCustomId() {
		return customId;
	}

	public void setCustomId(int customId) {
		this.customId = customId;
	}

	public float getOrderTotal() {
		return orderTotal;
	}

	public void setOrderTotal(float orderTotal) {
		this.orderTotal = orderTotal;
	}

	public String getOrderTime() {
		return orderTime;
	}

	public void setOrderTime(String orderTime) {
		this.orderTime = orderTime;
	}

	public String getOrderPs() {
		return orderPs;
	}

	public void setOrderPs(String orderPs) {
		this.orderPs = orderPs;
	}


	@Override
	public String toString() {
		Custom c = null;
		String cName = "";
		try {
			c = CustomDao.getCustomById(this.customId);
			cName = c.getCustomName();
		} catch (Exception e) {}
		return cName+":"+this.orderNo;
	}
	
}
